package com.mapper;

import com.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {
    //查询所有订单信息
    public List<Order> selectAllOrder(@Param("ispay") String ispay,@Param("userId")long userId);
    //生成订单信息
    public int insertOrder(Order order);
    //删除订单信息
    public int deleteOrder(long id);
    //插入订单返回id
    public int startOrder(Order order);
    //修改订单支付状态
    public int updataOrderStatus(@Param("id") long id,@Param("payOrderNum")String payOrderNum);
    //根据订单id 查询订单信息
    public Order selectOrderById(long id);
}
